<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>这是将所有字母全部转为为大写</title>
</head>
<body>
<script type="text/javascript">
  var name="hello";
  document.write(name.toUpperCase());
</script>
</body>
</html>